from django.db import models

from course.models import Course
from login.models import User
from utils.BaseModel import BaseModel


# Create your models here.
class Cart(BaseModel):
    user = models.ForeignKey(User, on_delete=models.CASCADE)
    course  = models.ForeignKey(Course, on_delete=models.CASCADE)
    is_select = models.BooleanField(default=True)
    class Meta:
        db_table = 'cart'
